package com.hysf.project1;

import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class PersonBixImplTest2 {
	static ApplicationContext context;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		context = new AnnotationConfigApplicationContext(AppConfig.class);
	}
	
	@Test
	public void findAll() {
//		ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		PersonBiz personBix = context.getBean(PersonBiz.class);
		personBix.findAll().forEach(System.out::println);
	}
}